﻿using PLCSharp.CoreModel.Prism;
using System.Windows;
using System.Windows.Controls;

namespace PLCSharp.Views.MotionController
{
    [DialogMenu(ViewName = "Controllers",
       IconKind = "\ue687",
       DisplayName = "运动控制", UserLevel = Authority.Authority.Engineer, Index = 7)]
    /// <summary>
    /// ControllerConfig.xaml 的交互逻辑
    /// </summary>
    public partial class Controllers : UserControl

    {
        public Controllers()
        {
            InitializeComponent();
        }
        private void DataGrid_Unloaded(object sender, RoutedEventArgs e)
        {
            var dataGrid = sender as DataGrid;
            dataGrid.CommitEdit(DataGridEditingUnit.Row, true);
        }
    }
}
